Home > C Programming > Defining Variables > Questions and Answers
01. |
What will be the output of the following statements? long int a = scanf("%ld%ld",&a,&a); printf("%ld",a); | |||||||||||
|
02. |
What will be the output of the following C code? void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); } | |||||||||||
|
03. |
What will be the output of the following C code? main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); } | |||||||||||
|
04. | Which of the following is a static string? | |||||||||||
|
05. | What character ends all strings? | |||||||||||
|
06. | Which of the following reads in a string named x with one hundred characters? | |||||||||||
|
07. | Which of the following functions compares two strings? | |||||||||||
|
08. | Which of the following adds one string to the end of another? | |||||||||||
|
09. | The statement that correctly defines an integer called sum is | |||||||||||
|
10. | The statement that correctly defines a character called letter is | |||||||||||
|